package com.quick.develop.flowable.domain.vo.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel("流程管理后台 - 流程任务的更新负责人的 Request VO")
@Data
public class BpmTaskUpdateAssigneeReqVO implements Serializable {

    private static final long serialVersionUID = 3379376881390794270L;

    @ApiModelProperty(value = "任务ID", required = true, example = "1024")
    @NotEmpty(message = "任务ID不能为空")
    private String taskId;

    @ApiModelProperty(value = "流程实例ID" , required = true)
    @NotEmpty(message = "流程实例ID不能为空")
    private String processInstanceId;

    /*@ApiModelProperty(value = "用户", notes = "如果为空，则不判断改任务是否属于他")
    private String userId;*/

    @ApiModelProperty(value = "新审批人的用户编号", required = true, example = "2048")
    @NotNull(message = "处理人不能为空")
    private String assignee;

    @ApiModelProperty(value = "装办意见",  example = "给你处理")
    private String comment;

}
